﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Net;

namespace SmartDeviceProject1
{
    public partial class Form1 : Form
    {
        Service1Client service = new Service1Client();
        public Form1()
        {
            InitializeComponent();
           
            System.Net.IPAddress adress = Dns.GetHostEntry("王吉").AddressList[0];
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string sql = "insert into [users] values('你妈逼','123-890',1,'菜鸟','dota')";
            
            try
            {
                string s = service.GetData(32504845);
                //service.ExcuteSql(sql);
                MessageBox.Show(s);
            }
            catch (Exception a)
            {
                MessageBox.Show(a.Message);
            }
        }
    }
}